package com.zh.springbootweb.controller;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * Copyright (C) 广州中和互联网技术有限公司
 *
 * @author 范家微 fanjiawei@borche.cn
 * @date :2021/1/20 9:40
 */
@Component
public class ScheduleService {
	@Scheduled(cron = "0/20 * * * * ?")
	public void send(){
		System.out.println("定时执行"+ LocalDateTime.now());
	}
}
